<?php

namespace app\mobile\controller;


use AlibabaCloud\SDK\ICE\V20201109\Models\GetMediaInfoRequest;
use AlibabaCloud\SDK\ICE\V20201109\Models\GetMediaProducingJobRequest;
use AlibabaCloud\SDK\ICE\V20201109\Models\GetSmartHandleJobRequest;
use AlibabaCloud\SDK\ICE\V20201109\Models\RegisterMediaInfoRequest;
use AlibabaCloud\SDK\ICE\V20201109\Models\SubmitMediaProducingJobRequest;
use AlibabaCloud\Tea\Utils\Utils\RuntimeOptions;
use app\admin\model\ClipFlowerText;
use app\admin\model\ClipFont;
use app\admin\model\ClipResource;
use app\admin\model\ClipTask;
use app\admin\model\ClipTextAdmissionSpecial;
use app\admin\model\FigureCompositeAvatar;
use app\admin\model\FigureCompositeSound;
use app\admin\model\FigureUser;
use app\admin\model\FigureVideo;
use app\BaseController;
use AlibabaCloud\SDK\ICE\V20201109\ICE;
use AlibabaCloud\SDK\ICE\V20201109\Models\SubmitASRJobRequest;
use app\common\service\ApiService;
use OSS\OssClient;
use think\App;
use think\Exception;


/**
 * 合伙人
 *
 * @author Administrator
 *
 */
class Test extends BaseController
{
    public function json()
    {

        $titleOne = [
            //"TimelineIn" => 0,
            "FontColorOpacity" => 1,
            // "TimelineOut" => 50,
            "Font" => "HappyZcool-2016",
            "Alignment" => "Center",
            "Y" => 0.101,
            "X" => 0.5,
            "TextWidth" => 0.9,
            "FontColor" => "#ffffff",
            "FontFace" => [
                "Italic" => false,
                "Underline" => false,
                "Bold" => true,
            ],
            "SubtitleEffects" => [
                [

                    "Bord" => 0.087,
                    "Radius" => 2,
                    "Type" => "Box",

                    "Color" => "#000000",
                    "Opacity" => 0.7,
                ]
            ],
            "Type" => "Text",

            "FontSize" => 23,
            "AdaptMode" => "AutoWrap",
        ];

        $captionsOne = [
            "FontColorOpacity" => 1,
            "Font" => "Source Han Sans CN Normal",
            "Alignment" => "Center",
            "Y" => 0.755,
            "X" => 0.5,
            "TextWidth" => 1,
            "FontColor" => "#000000",
            'SubtitleEffects' => [[
                "Bord" => 0.1,
                "Type" => "Outline",
                "Color" => "#ffffff",
            ]
            ],
            "Type" => "Text",
            'FontFace' => [
                "Italic" => false,
                "Underline" => false,
                "Bold" => false,
            ],
            "FontSize" => 20,
            "AdaptMode" => "AutoWrap",
        ];


        $titleTwo = [
            "FontColorOpacity" => 1,
            "Font" => "Alibaba PuHuiTi",
            "Alignment" => "Center",
            "X" => 0.5,
            "Y" => 0.101,
            "BorderStyle" => 1,
            "FontColor" => "#000000",
            "SubtitleEffects" => [
                [
                    "Bord" => 0.069,
                    "Type" => "Outline",
                    "Color" => "#ffffff",
                    "Opacity" => 1

                ]
            ],
            "Type" => "Text",
            'FontFace' => [
                "Italic" => true,
                "Underline" => false,
                "Bold" => true,
            ],
            "FontSize" => 30,
            "AdaptMode" => "AutoWrap",

        ];
        $captionsTwo = [

            "FontColorOpacity" => 1,
            "OutlineColour" => "#000000",
            "Shadow" => 0,
            "BackOpacity" => 1,
            "Font" => "Source Han Sans CN Normal",
            "_yOffset" => 0,
            "SizeRequestType" => "RealDim",
            "OutlineOpacity" => 1,
            "Alignment" => "Center",
            "X" => 0.5,
            "Y" => 0.755,
            "BackColour" => "#ffffff",
            "BorderStyle" => 1,
            "Color" => "#ffffff",
            "FontColor" => "#ffffff",
            'SubtitleEffects' => [
                [
                    "Bord" => 0.1,
                    "Radius" => 2.1,
                    "Type" => "Box",
                    "Color" => "#000000",
                    "Opacity" => 0.6,
                ]
            ],
            'Type' => 'Text',
            'FontFace' => [
                "Italic" => false,
                "Underline" => false,
                "Bold" => true,
            ],
            "FontSize" => 20,
            "AdaptMode" => "AutoWrap",

        ];

     /*   $titleTwo = [
            "FontColorOpacity" => 1,
            "OutlineColour" => "#ffffff",
            "Shadow" => 0,
            "Font" => "Alibaba PuHuiTi",
            "OutlineOpacity" => 0.9,
            "Alignment" => "Center",
            "X" => 0.5,
            "Y" => 0.101,
            "BackColour" => "#ffffff",
            "BorderStyle" => 1,
            "Color" => "#000000",
            "FontColor" => "#000000",
            "Outline" => 2,
            "Type" => "Text",
            'FontFace' => [
                "Italic" => true,
                "Underline" => false,
                "Bold" => true,
            ],
            "FontSize" => 30,
            "AdaptMode" => "AutoWrap",

        ];*/

        $titleThree = [

            "FontColorOpacity" => 1,
            "Font" => "Alibaba PuHuiTi",
            "Alignment" => "Center",
            "Y" => 0.101,
            "X" => 0.5,
            "TextWidth" => 0.9,
            "FontColor" => "#fd0000",
            "SubtitleEffects" => [
                [
                    "_bizType" => "Outline",
                    "_enable" => true,
                    "Bord" => 0.067,
                    "Type" => "Outline",
                    "Color" => "#ffffff",
                    "Opacity" => 1,
                ]
            ],
            "Type" => "Text",
            'FontFace' => [
                "Italic" => false,
                "Underline" => false,
                "Bold" => true,
            ],
            "FontSize" => 30,
            "AdaptMode" => "AutoWrap",

        ];
        $captionsThree = [
            "FontColorOpacity" => 1,
            "Font" => "Source Han Sans CN Normal",
            "Alignment" => "Center",
            "Y" => 0.755,
            "X" => 0.5,
            "TextWidth" => 1,
            "FontColor" => "#ffc400",
            "SubtitleEffects" => [
                [
                    "_bizType" => "Box",
                    "Bord" => 0.15,
                    "Radius" => 2.1,
                    "Type" => "Box",
                    "_enable" => true,
                    "Color" => "#000000",
                    "Opacity" => 0.7
                ],
            ],
            'Type' => 'Text',
            'FontFace' => [
                "Italic" => false,
                "Underline" => false,
                "Bold" => false,
            ],
            'FontSize' => 20,
            'AdaptMode' => 'AutoWrap',
        ];

        $title4 = [
            "FontColorOpacity" => 1,
            "Font" => "Alibaba PuHuiTi",
            "Alignment" => "Center",
            "Y" => 0.101,
            "TextWidth" => 0.9,
            "X" => 0.5,
            "FontColor" => "#fd0000",
            "SubtitleEffects" => [
                [
                    "Bord" => 0.133,
                    "Type" => "Box",
                    "Color" => "#ffffff",
                    "Opacity" => 0.5
                ]
            ],
            "Type" => "Text",
            'FontFace' => [
                "Italic" => false,
                "Underline" => false,
                "Bold" => true,
            ],
            "FontSize" => 30,
            "AdaptMode" => "AutoWrap",

        ];
        $captions4 = [
            "FontColorOpacity" => 1,
            "Font" => "Source Han Sans CN Normal",
            "Alignment" => "Center",
            "Y" => 0.755,
            "X" => 0.5,
            "TextWidth" => 1,
            "FontColor" => "#000000",
            "SubtitleEffects" => [
                [
                    "Bord" => 0.1,
                    "Type" => "Outline",
                    "Color" => "#ffffff",

                ],
            ],
            'Type' => 'Text',
            'FontFace' => [
                "Italic" => false,
                "Underline" => false,
                "Bold" => true,
            ],
            'FontSize' => 20,
            'AdaptMode' => 'AutoWrap',
        ];


        $title5 = [
            "FontColorOpacity" => 1,
            "Font" => "zcool-gdh",
            "Alignment" => "Center",
            "Y" => 0.101,
            "X" => 0.5,
            "TextWidth" => 0.9,
            "FontColor" => "#fd0000",
            "SubtitleEffects" => [
                [

                    "Shift" => 0.091,
                    "Type" => "Shadow",
                    "XShift" => 0.045,
                    "Color" => "#ffffff",
                    "YShift" => 0.045,

                ]
            ],
            "Type" => "Text",
            'FontFace' => [
                "Italic" => true,
                "Underline" => false,
                "Bold" => true,
            ],
            "FontSize" => 22,
            "AdaptMode" => "AutoWrap",

        ];
        $captions5 = [
            "FontColorOpacity" => 1,
            "Font" => "Source Han Sans CN Normal",
            "Alignment" => "Center",
            "Y" => 0.755,
            "X" => 0.5,
            "TextWidth" => 1,
            "FontColor" => "#ff3500",
            "SubtitleEffects" => [
                [

                    "Bord" => 0.095,
                    "Radius" => 1,
                    "Type" => "Box",

                    "Color" => "#ffffff",

                    "Opacity" => 0.8,

                ],
            ],
            'Type' => 'Text',
            'FontFace' => [
                "Italic" => false,
                "Underline" => false,
                "Bold" => true,
            ],
            'FontSize' => 21,
            'AdaptMode' => 'AutoWrap',
        ];

        $title6 = [

            "FontColorOpacity" => 1,
            "Font" => "Alibaba PuHuiTi",
            "Alignment" => "Center",
            "Y" => 0.101,
            "TextWidth" => 0.9,
            "FontColor" => "#193ae5",
            "X" => 0.5,
            "Type" => "Text",
            "SubtitleEffects" => [
                [

                    "Bord" => 0.129,
                    "Type" => "Shadow",
                    "XShift" => 0,
                    "Color" => "#ffffff",
                    "Blur" => 4,
                    "YShift" => 0,
                ]
            ],
            'FontFace' => [
                "Italic" => true,
                "Underline" => false,
                "Bold" => true,
            ],
            "FontSize" => 31,
            "AdaptMode" => "AutoWrap",

        ];
        $captions6 = [
            "FontColorOpacity" => 1,
            "Font" => "Source Han Sans CN Normal",
            "Alignment" => "Center",
            "TextWidth" => 1,
            "Y" => 0.755,
            "X" => 0.5,
            "FontColor" => "#ffffff",
            "SubtitleEffects" => [
                [
                    "Bord" => 0.1,
                    "Radius" => 2,
                    "Type" => "Box",
                    "Color" => "#2e85ff",
                    "Opacity" => 0.6,
                ],
            ],
            'Type' => 'Text',
            'FontFace' => [
                "Italic" => false,
                "Underline" => false,
                "Bold" => true,
            ],
            'FontSize' => 20,
            'AdaptMode' => 'AutoWrap',
        ];

        $title7 = [
            "FontColorOpacity" => 1,
            "Font" => "Alibaba PuHuiTi Heavy",
            "Alignment" => "Center",
            "Y" => 0.101,
            "X" => 0.5,
            'Type' => 'Text',
            "TextWidth" => 0.9,
            "FontColor" => "#193ae5",
            "SubtitleEffects" => [
                [

                    "Bord" => 0.065,
                    "Type" => "Outline",
                    "Color" => "#ffffff",
                    "Opacity" => 1,
                ]
            ],
            'FontFace' => [
                "Italic" => false,
                "Underline" => false,
                "Bold" => false,
            ],
            "FontSize" => 30,
            "AdaptMode" => "AutoWrap",

        ];
        $captions7 = [
            "FontColorOpacity" => 1,
            "Font" => "FZLanTingHeiS-R-GB",
            "Alignment" => "Center",
            "Y" => 0.755,
            "X" => 0.5,
            "TextWidth" => 1,
            "FontColor" => "#ffffff",
            "SubtitleEffects" => [
                [
                    "Bord" => 0.118,
                    "Type" => "Outline",
                    "Color" => "#1c11ff",
                    "Opacity" => 1
                ],
            ],
            'Type' => 'Text',
            'FontFace' => [
                "Italic" => false,
                "Underline" => false,
                "Bold" => true,
            ],
            'FontSize' => 17,
            'AdaptMode' => 'AutoWrap',
        ];


        $title8 = [

            "FontColorOpacity" => 1,
            "Font" => "Alibaba PuHuiTi Heavy",
            "Alignment" => "Center",
            "Y" => 0.101,
            "X" => 0.5,
            'Type' => 'Text',
            "TextWidth" => 0.9,
            "FontColor" => "#31d122",
            "SubtitleEffects" => [
                [
                    "Bord" => 0.065,
                    "Type" => "Outline",
                    "Color" => "#ffffff",
                    "Opacity" => 1
                ]
            ],
            'FontFace' => [
                "Italic" => true,
                "Underline" => false,
                "Bold" => false,
            ],
            "FontSize" => 31,
            "AdaptMode" => "AutoWrap",

        ];
        $captions8 = [

            "FontColorOpacity" => 1,
            "Font" => "FZLanTingHeiS-R-GB",
            "Alignment" => "Center",
            "Y" => 0.755,
            "X" => 0.5,

            "TextWidth" => 1,
            "FontColor" => "#5f5f5f",
            "SubtitleEffects" => [
                [
                    "Bord" => 0.059,
                    "Type" => "Outline",
                    "Color" => "#60f816",
                    "Opacity" => 1,

                ],
            ],
            'Type' => 'Text',
            'FontFace' => [
                "Italic" => false,
                "Underline" => false,
                "Bold" => false,
            ],
            'FontSize' => 17,
            'AdaptMode' => 'AutoWrap',
        ];


        $title9 = [
            "FontColorOpacity" => 1,
            "Font" => "Alibaba PuHuiTi 2.0 95 ExtraBold",
            "Alignment" => "Center",
            "Y" => 0.101,
            "X" => 0.5,
            "TextWidth" => 0.9,
            "FontColor" => "#f56409",
            'Type' => 'Text',
            "SubtitleEffects" => [
                [
                    "Shift" => 0.065,
                    "Bord" => 0,
                    "Type" => "Shadow",
                    "XShift" => 0.065,
                    "Color" => "#ffffff",
                    "YShift" => 0.065,
                    "Opacity" => 1,
                ]
            ],
            'FontFace' => [
                "Italic" => true,
                "Underline" => false,
                "Bold" => true,
            ],
            "FontSize" => 31,
            "AdaptMode" => "AutoWrap",

        ];
        $captions9 = [
            "FontColorOpacity" => 1,
            "Font" => "FZLanTingHeiS-R-GB",
            "Alignment" => "Center",
            "Y" => 0.755,
            "X" => 0.5,
            "TextWidth" => 1,
            "FontColor" => "#ffd600",
            "SubtitleEffects" => [
                [

                    "Bord" => 0.059,
                    "Type" => "Outline",
                    "Color" => "#000000",
                    "Opacity" => 1

                ],
            ],
            'Type' => 'Text',
            'FontFace' => [
                "Italic" => false,
                "Underline" => false,
                "Bold" => false,
            ],
            'FontSize' => 17,
            'AdaptMode' => 'AutoWrap',
        ];


        $title10 = [
            "FontColorOpacity" => 1,
            "Font" => "Alibaba PuHuiTi Heavy",
            "Alignment" => "Center",
            "Y" => 0.101,
            "X" => 0.5,
            'Type' => 'Text',
            "TextWidth" => 0.9,
            "FontColor" => "#ffd600",
            "SubtitleEffects" => [
                [
                    "Bord" => 0.065,
                    "Type" => "Outline",
                    "Color" => "#000000",
                ]
            ],
            'FontFace' => [
                "Italic" => true,
                "Underline" => false,
                "Bold" => false,
            ],
            "FontSize" => 30,
            "AdaptMode" => "AutoWrap",
        ];
        $captions10 = [

            "FontColorOpacity" => 1,
            "Font" => "FZLanTingHeiS-R-GB",
            "Alignment" => "Center",
            "Y" => 0.755,
            "X" => 0.5,
            "TextWidth" => 1,
            "FontColor" => "#ff7d00",
            "SubtitleEffects" => [
                [
                    "Bord" => 0.176,
                    "Radius" => 2,
                    "Type" => "Box",
                    "Color" => "#000000",
                    "Opacity" => 0.8,
                ],
            ],
            'Type' => 'Text',
            'FontFace' => [
                "Italic" => false,
                "Underline" => false,
                "Bold" => false,
            ],
            'FontSize' => 17,
            'AdaptMode' => 'AutoWrap',
        ];


        $title11 = [
            "FontColorOpacity" => 1,
            "Font" => "Alibaba PuHuiTi",
            "Alignment" => "Center",
            "Y" => 0.101,
            "X" => 0.5,
            'Type' => 'Text',
            "TextWidth" => 0.9,
            "FontColor" => "#ffbfd8",
            "SubtitleEffects" => [
                [
                    "Shift" => 0.065,
                    "Bord" => 0,
                    "Type" => "Shadow",
                    "XShift" => 0.065,
                    "Color" => "#c32d2d",
                    "YShift" => 0.065,
                    "Opacity" => 1,
                ]
            ],
            'FontFace' => [
                "Italic" => true,
                "Underline" => false,
                "Bold" => true,
            ],
            "FontSize" => 30,
            "AdaptMode" => "AutoWrap",
        ];

        $captions11 = [
            "FontColorOpacity" => 1,
            "Font" => "FZLanTingHeiS-R-GB",
            "Alignment" => "Center",
            "Y" => 0.755,
            "X" => 0.5,
            "TextWidth" => 1,
            "FontColor" => "#ffffff",
            "SubtitleEffects" => [
                [
                    "Shift" => 0.118,
                    "Bord" => 0.059,
                    "Type" => "Outline",
                    "Color" => "#f5669e",
                ],
            ],
            'Type' => 'Text',
            'FontFace' => [
                "Italic" => false,
                "Underline" => false,
                "Bold" => false,
            ],
            'FontSize' => 17,
            'AdaptMode' => 'AutoWrap',
        ];

        $title12 = [

            "FontColorOpacity" => 1,
            "Font" => "Alibaba PuHuiTi Heavy",
            "Alignment" => "Center",
            "Y" => 0.101,
            "TextWidth" => 0.9,
            "X" => 0.5,
            "FontColor" => "#bb0eee",
            "SubtitleEffects" => [
                [
                    "Bord" => 0.065,
                    "Type" => "Outline",
                    "Color" => "#ffffff",
                ]
            ],
            'Type' => 'Text',
            'FontFace' => [
                "Italic" => true,
                "Underline" => false,
                "Bold" => false,
            ],

            "FontSize" => 30,
            "AdaptMode" => "AutoWrap",

        ];
        $captions12 = [
            "FontColorOpacity" => 1,
            "Font" => "FZLanTingHeiS-R-GB",
            "Alignment" => "Center",
            "Y" => 0.755,
            "X" => 0.5,
            "TextWidth" => 1,
            "FontColor" => "#7a049e",

            "SubtitleEffects" => [
                [
                    "Bord" => 0.235,
                    "Type" => "Shadow",
                    "XShift" => 0,
                    "Color" => "#ffffff",
                    "Blur" => 2,
                    "YShift" => 0,
                ],
            ],
            'Type' => 'Text',
            'FontFace' => [
                "Italic" => false,
                "Underline" => true,
                "Bold" => false,
            ],
            'FontSize' => 17,
            'AdaptMode' => 'AutoWrap',
        ];
        var_dump(json_encode($title5));
        var_dump(json_encode($captions11));
    }
}